package my.test.autowire;

import org.springframework.beans.factory.BeanFactory;

import java.util.List;

public class UserService {

	private OrderService orderService;
	
	private List<OrderService> orderServiceList;

	private BeanFactory beanFactory;

	public UserService() {
	}

	public UserService(OrderService orderService) {
		this.orderService = orderService;
	}

	public void setOrderService(OrderService orderService) {
		this.orderService = orderService;
	}
	
	public List<OrderService> getOrderServiceList() {
		return orderServiceList;
	}

	public void setOrderServiceList(List<OrderService> orderServiceList) {
		this.orderServiceList = orderServiceList;
	}

	public void setBeanFactory(BeanFactory beanFactory) {
		this.beanFactory = beanFactory;
	}

	public void test(){
		System.out.println(orderService);
		System.out.println(orderServiceList);
		System.out.println(beanFactory);
	}
}
